package com.gouying.design.patterns.builder;

public abstract class ZaoFangZi {

    int zhuanNum;

    int dijiNum;

    int fangliangNum;

    int baowenNum;

    abstract ZaoFangZi zhuan();

    abstract ZaoFangZi diji();

    abstract ZaoFangZi fangliang();

    abstract ZaoFangZi baowen();

    public int sum(){
        return fangliangNum + baowenNum + dijiNum + zhuanNum;
    }


}
